package com.agnes.network.sample;

import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;

import com.agnes.network.HttpManager;
import com.agnes.network.sample.R;

import org.json.JSONObject;

import java.util.HashMap;

public class MainActivity extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        testPost();
    }

    private void testPost() {
        HttpManager.getInstance().postForJO("url", new HashMap<String, Object>(),
                new MyResponseCallback<JSONObject>(this) {


                });
    }
}
